package JLB_Chapter_10;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class code_10_03 {
    public static void main(String[] args) {
        Set set = new HashSet();
        set.add("c");
        set.add("c");
        set.add("b");
        set.add("a");
        Iterator<String> it = set.iterator();
        while(it.hasNext()) {
            String str = it.next();
            System.out.println(str);
        }
    }
}
